//
//  MFWJsonUtils.h
//  MFWSdk
//
//  Created by Song Xiaofeng on 13-7-26.
//  Copyright (c) 2013年 Mafengwo Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MFWJsonUtils : NSObject
/**
 *	parse json data to mutalbe containers
 *
 *	@param	data	json data
 *
 *	@return	NSMultableArray or NSMultableDictionary
 */
+ (id)mutableParseJsonData:(NSData*)data;

+ (id)mutableParseJsonString:(NSString*)jsonStr;

/**
 *	parse json data
 *
 *	@param	data	json data
 *
 *	@return	NSArray or NSDictionary
 */
+ (id)parseJsonData:(NSData*)data;

+ (id)parseJsonString:(NSString*)jsonStr;

/**
 *	encode json object
 *
 *	@param	obj	json object
 *
 *	@return	raw data of json
 */
+ (NSData*)dataEncodingJsonObject:(id)obj;

+ (NSString*)stringEncodingJsonObject:(id)obj;
@end
